package com.cxs.controller;

import com.cxs.service.WechatService;
import com.cxs.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Project: wechat-push
 * @Author: cxs2014501@163.com
 * @Create: 2023/9/7 11:32
 * @Description:
 **/
@RestController
public class TestController {

    @Autowired
    private WechatService wechatService;

    @RequestMapping("/test")
    public Result test(){
        Result r = Result.ok(0, "操作成功", null);
        wechatService.pushEveryMsg();
        return r;
    }
}
